<script type="text/javascript">
changeWaiting(0); 
 var fmfrmchartgeneral_cal1 = CreateCalObject('fmfrmchartgeneral_fromdate', 'fmfrmchartgeneral_imgCal1');
var fmfrmchartgeneral_cal2 = CreateCalObject('fmfrmchartgeneral_todate', 'fmfrmchartgeneral_imgCal2');

function fmfrmchartgeneral_createChart(){
 charttype = $("input[name='fmfrmchartgeneral_charttype']:checked").val();
 fromdate = ConvertoDateEN($('#fmfrmchartgeneral_fromdate').val());
 todate = ConvertoDateEN($('#fmfrmchartgeneral_todate').val());
  if(!checkDate('fmfrmchartgeneral_fromdate','fmfrmchartgeneral_todate',90)){
       
      return false;
 } 
 changeWaiting(0); 
 xajax_fmfrmchartgeneral_viewchart(charttype,fromdate,todate);  
}

$('#fmfrmchartgeneral_fromdate').val(GetCurrentDateTime(0,1,false,0)) ;
$('#fmfrmchartgeneral_todate').val(GetCurrentDateTime(0,0,false,0)) ;

//$('#fmfrmchartgeneral_fromdate').val(GetStartDay()) ;
//$('#fmfrmchartgeneral_todate').val(GetToday()) ;
$(document).ready(function () {
$('#fmfrmchartgeneral_productDetail').dialog({
        autoOpen: false,
        modal: false,
        width: 400,
        resizable: true,
        overflow: 'auto' 
    });
});
//changeWaiting(0);
xajax_fmfrmchartgeneral_viewchart();
var data_fmchartgeneral ; 
function open_flash_chart_data_fmchartgeneral()    //
{
   // alert(data_chartincomebymonth);
    return JSON.stringify(data_fmchartgeneral);
}
initForm('fmfrmchartgeneral_tblinfo');
initDivleft();
    </script>

<body>
<div class="divmain">  

<table width="100%" id="fmfrmchartgeneral_tblinfo" class="tblInfo">
<tr>
<td valign="top" class="width25"  >
<div >
<table class="info" id="fmfrmchartgeneral_info">
<tr> 
<td>
<div id="fmfrmchartgeneral_divleft" class="divleft"> 
<table class="width100 tbltranparents">               
       <tr>
         <td align="right" class="width30 lblRequired"><b>Thời gian:</b></td>
         <td><input type="text" value="" class="datereport txtRequired" onblur="formatddmmyyyy(this)" maxlength="10"  id="fmfrmchartgeneral_fromdate"/><a href="javascript:fmfrmchartgeneral_cal1.popup();"><img src="adagps.com/images/cal/cal2.png" id="imgfmfrmchartgeneral_cal1"  class="datepicker dpkstart" ></a>-
         <input class="datereport txtRequired" onblur="formatddmmyyyy(this)" maxlength="10" type="text" value=""  id="fmfrmchartgeneral_todate" /><a href="javascript:fmfrmchartgeneral_cal2.popup();"><img src="adagps.com/images/cal/cal2.png" id="imgfmfrmchartgeneral_cal2"   class="datepicker dpkend" ></a> </td>
       </tr>
       <tr>
         <td align="right" class="width30" rowspan="4"><b>Loại biểu đồ:</b></td>
         <td><input type="radio" checked="checked" name="fmfrmchartgeneral_charttype" id="fmfrmchartgeneral_charttype_1" value="1">Doanh thu theo ngày  </input></td>
       </tr>
      <tr>
         <td align="right"><input type="radio"  name="fmfrmchartgeneral_charttype" id="fmfrmchartgeneral_charttype_2" value="2">Doanh thu theo phòng</input></td>
       </tr>       
       <tr>
         <td align="right"><input type="radio"  name="fmfrmchartgeneral_charttype" id="fmfrmchartgeneral_charttype_3" value="3">Theo người thu</input></td>
       </tr>       
              
</table>
    <div class="divactionbuton">
        <button id="fmfrmchartgeneral_create" onclick="fmfrmchartgeneral_createChart();" class="search1" type="button" > Xem </button>
        </div>
</div>
</td>
</tr>    
       
<tr>
<td>


</td>
</tr>
</table>
</div>
</td>
<td class="clsmiddle"></td>
<td height="400"  class="clschart" align="center" valign="middle">
<div class="divGrid" id="fmfrmchartgeneral_divGrid">
</div></td>
<!--<td class="clsend"></td>-->
</tr>
</table>
</div>

</body>



